Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jobs/machines: manager: simplify logic using HashMap::entry() #15

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

hnez
Copy link
Collaborator

@hnez hnez commented Aug 27, 2024

Use the magic that is HashMap::entry() to simplify the logic in two places.

This does not even use OccupiedEntry/VacantEntry yet. Can't wait to have a use case for those!

Fixes #11.

@hnez hnez merged commit 89d3863 into main Aug 27, 2024
3 checks passed
@hnez hnez deleted the hashset-entry branch August 27, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use HashMap::entry()
1 participant